﻿using System.Configuration;
using Atom.Common.ResourceProvider;
namespace Atom.Common.Configuration
{
    public class XmlResourceProviderConfigurationElement : ResourceProviderConfigurationElement
    {
        [ConfigurationProperty("fileName", IsRequired = true)]
        public string FileName
        {
            get
            {
                return (string)this["fileName"];
            }
            set
            {
                this["fileName"] = value;
            }
        }

        public override IResourceProvider CreateProvider()
        {
            return new XmlResourceProvider(this.FileName);
        }
    }
}